package com.youthburin.rmp.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.youthburin.rmp.services.RmpUserService;

@Controller("/user")
public class RmpUserController {
	@Autowired
	private RmpUserService rmpUserService;
	
	@RequestMapping("/user/list")
	public String list() {
		System.out.println(rmpUserService.viewRmpUser("liwei").getPassword());
		return "user/list";
	}

	@RequestMapping("/user/adds")
	public String add() {
		return "user/add";
	}

	@RequestMapping("/user/add-s")
	public String add2() {
		return "user/add";
	}

	@RequestMapping("/user/add.s")
	public String add3() {
		return "user/add";
	}
}
